<div>
  <%=error_messages_for "application_form"%>
  <fieldset>
    <legend>New application</legend>

    <% form_for 'application_form' do |form| %>
      <p><label for="application_form_laiv_id">Laiv:</label>
      <%=form.select :laiv_id, Laiv.find(:all).collect {|l| [l.title, l.id]}%></p>

      <p><label for="application_form_wishes">Wish to play:</label>
      <%=form.text_area :wishes, :cols => 40, :rows => 5%></p>

      <p><label for="application_form_comments">Other comments:</label>
      <%=form.text_area :comments, :cols => 40, :rows => 5%></p>

      <p><%=submit_tag 'Apply for laiv'%></p>
    <% end %>
  </fieldset>
</div>
